  	//配置from信息
	function createFrom(actionName){
		var fromFile =  document.createElement("FORM");
		document.body.appendChild(fromFile);
		fromFile.method = "POST";
		fromFile.action = actionName;
		fromFile.style.display="none";
		return fromFile;
	}
	
	//配置from信息1
	function createFrom1(actionName){
		var fromFile =  document.createElement("FORM");
		document.body.appendChild(fromFile);
		fromFile.method = "POST";
		fromFile.encding="multipart/form-data";
		fromFile.action = actionName;
		fromFile.style.display="none";
		return fromFile;
	}
	
	//配置from信息
	function createParentFrom(actionName){
		var fromFile = window.parent.document.createElement("FORM");
		window.parent.document.body.appendChild(fromFile);
		fromFile.method = "POST";
		fromFile.action = actionName;
		fromFile.style.display="none";
		return fromFile;
	}
	
	//注入到from数据中
	function loadFrom(name,value,fromFile){
		var input = document.createElement("INPUT");
		input.type="hidden";
		input.name = name;
		input.id = name;
		input.value = value;
		fromFile.appendChild(input);
	}
	
	function loadParentFrom(name,value,fromFile){
		var input = window.parent.document.createElement("INPUT");
		input.type="hidden";
		input.name = name;
		input.id = name;
		input.value = value;
		fromFile.appendChild(input);
	}
	
	//注入到from数据中
	function loadFromToname(name,value,fromFile){
		var input = document.createElement("INPUT");
		input.type="hidden";
		input.name = name;
		input.value = value;
		fromFile.appendChild(input);
	}
	
	function getBrowserVersion(){
		var browser = {};
		var userAgent = navigator.userAgent.toLowerCase();
		var s;
			(s = userAgent.match(/msie ([\d.]+)/))
   		? browser.ie = s[1]
			: (s = userAgent.match(/firefox\/([\d.]+)/))
                  ? browser.firefox = s[1]
                : (s = userAgent.match(/chrome\/([\d.]+)/))
                        ? browser.chrome = s[1]
                       : (s = userAgent.match(/opera.([\d.]+)/))
                                  ? browser.opera = s[1]
                                 : (s = userAgent
                                       .match(/version\/([\d.]+).*safari/))
                                          ? browser.safari = s[1]
                                            : 0;
		var version = "";
		if (browser.ie){
			version = "msie " + browser.ie;
		} else if (browser.firefox){
			version = "firefox " + browser.firefox;
		} else if (browser.chrome){
			version = "chrome " + browser.chrome;
		} else if (browser.opera){
			version = "opera " + browser.opera;
		} else if (browser.safari){
			version = "safari " + browser.safari;
		} else {
			version = "未知浏览器";
		}
		return version;
	}
	
	function fmoney(s, n){
		n = n > 0 && n <= 20 ? n : 2;
		s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed(n) + "";
		var l = s.split(".")[0].split("").reverse(),
		r = s.split(".")[1];
		t = "";
		for(var i = 0; i < l.length; i ++ ){
			t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
		}
		return t.split("").reverse().join("") + "." + r;
	}